package DataGo;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

public class Data03 {
    public static void main(String[] args) throws ParseException {
        String start = "2020-11-11 0:0:0";
        String end = "2020-11-11 0:10:0";
        String qiao = "2020-11-11 0:03:0";
        String pi = "2020-11-11 0:13:0";
        SimpleDateFormat sim = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        long ss = sim.parse(start).getTime();
        long ee = sim.parse(end).getTime();
        long qi = sim.parse(qiao).getTime();
        long p = sim.parse(pi).getTime();
        if(qi>=ss && qi<=ee){
            System.out.println("强抢到了");
        }else if (p>=ss && p<=ee){
            System.out.println("皮抢到了");
        }

    }
}
